package study.javabasic;

import study.javabasic.Annotation.TestAnnotation;
import sun.misc.Unsafe;

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.AbstractQueuedSynchronizer;

/**
 * @author zhangshuhan
 * @date 2019/3/6
 */
public class Test {

    @TestAnnotation("zsh")
    public void sayHello() {
        System.out.println("hello");
    }

    public static void main(String[] args) throws NoSuchMethodException {
       /* Method method = Test.class.getDeclaredMethod("sayHello");
        System.out.println(method.getAnnotation(TestAnnotation.class).value());

        AbstractQueuedSynchronizer abstractQueuedSynchronizer;
        HashMap map=new HashMap();
        map.size();*/

       String a="123";
       String c="456";
       String b=new String("123");
       String d=a+c;
       String e=a+c;
       System.out.println(d==e);
        Executors.newFixedThreadPool(1);
    }
}
